package top.songxs.gmall.feign.item;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.feign.item.fallback.SkuDetailFeignClientFallback;
import top.songxs.gmall.product.vo.SkuDetailVo;

@FeignClient(value = "service-item",fallback = SkuDetailFeignClientFallback.class)
public interface SkuDetailFeignClient {

    @GetMapping("/api/inner/item/detail/{skuId}")
    public Result<SkuDetailVo> getSkuDetailList(@PathVariable("skuId") Long skuId) ;

    @PutMapping("/api/inner/search/updateHotScore")
    public Result updateHotScore(@RequestParam("goodsId") Long goodsId , @RequestParam("hotScore")Integer hotScore) ;
}
